package com.medi.business.domain;

import com.medi.common.utils.SecurityUtils;
import com.medi.common.utils.uuid.IdUtils;
import lombok.Data;
import com.medi.common.annotation.Excel;
import com.medi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 商户组管理对象 sys_tenant
 * 
 * @author medi
 * @date 2024-09-13
 */
@Data
public class SysTenant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 访问ID */
    private String id;

    /** 删除标识 */
    @Excel(name = "删除标识")
    private String isDel;

    /** 租户标识 */
    @Excel(name = "租户标识")
    private String tenantId;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contact;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 租户名称 */
    @Excel(name = "租户名称")
    private String name;

    /** 系统管理员(管理商户组) */
    @Excel(name = "系统管理员(管理商户组)")
    private String sysUserId;

    public void creat() {
        this.setId(IdUtils.fastSimpleUUID());
        this.setCreateTime(new Date());
        this.setCreateBy(SecurityUtils.getNickname());

    }

    public void modif() {
        this.setUpdateTime(new Date());
        this.setUpdateBy(SecurityUtils.getNickname());
    }
}
